update

inline suspend fun <T : BaseModel> update(id: String, body: String, expandRelations: ExpandRelations = ExpandRelations(), showFields: ShowFields = ShowFields()): T

Updates an existing records and gets it

Parameters

id

the id of the record to update

body

JSON data used to update the record in the form of a string


inline suspend fun <T : BaseModel> update(id: String, body: Map<String, JsonPrimitive>, files: List<FileUpload>, expandRelations: ExpandRelations = ExpandRelations(), showFields: ShowFields = ShowFields()): T

Updates an existing records and gets it

Parameters

id

the id of the record to update

body

the key value data used to create the record

files

the files you wish to upload